package org.example.domain.dto;

import lombok.Data;

import java.util.Objects;

@Data
public class SocialType {
    private SocialAuthInfo user;

    private SocialAuthInfo admin;

    private SocialAuthInfo operation;


    public SocialAuthInfo getSocialAuthInfo(Integer type) {
        if (Objects.equals(type, 1)) {
            return admin;
        } else if (Objects.equals(type, 2)) {
            return user;
        } else if (Objects.equals(type, 3)) {
            return operation;
        }
        return null;
    }
}
